import { useState } from 'react'
import SearchResults from './SearchResults'

export default function Demo01() {
  const [text, setText] = useState('')
  

  return (
    <div>
      <input type="text" 
        onChange={(e: any) => setText(e.target.value)} 
      />
      <SearchResults query={text} />
    </div>
  )
}